package com.homework.vehicle.Ship;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/26 19:41
 * @description
 */
public class Yacht extends Ship{
    private String yacht;

    public Yacht(String type, String yacht) {
        super(type);
        this.yacht = yacht;
    }

    public Yacht() {
    }

    public String getYacht() {
        return yacht;
    }

    public void setYacht(String yacht) {
        this.yacht = yacht;
    }

    @Override
    public void getInfo(){
        System.out.print(getType()+yacht);
    }
    @Override
    public void atk() {
        System.out.println("无法攻击");
    }
}
